Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
API Documentation > Blank XPages Library
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Community articleBlank XPages Library
Added by ~Ted Chukrotheroni | Edited by IBM contributor~Phil Fezhipivitchader on August 21, 2010 | Version 2
expanded Abstract
collapsed Abstract
This article provides an XPages library with very little content to be used as a template and step-by-step instructions to change it to develop your own library.
Tags: XPages, 8.5.2, getting started
ShowTable of Contents
HideTable of Contents
  • 1 Introduction
  • 2 Import the library
  • 3 Rename the feature
  • 4 Change the feature in the update site
  • 5 Changing the plugin
    • 5.1 Rename the plugin
    • 5.2 Change the plugin ID in the library
    • 5.3 Change the plugin in the feature
    • 5.4 Rename each package
    • 5.5 Rename the library
    • 5.6 Change the control's xsp-config file

Introduction


This article is part of the XPages Extensibility API Developers Guide.

This article shows you step-by-step (with screenshots and code samples) how to create an XPages library by starting with the blank library provided and changing it as required.

When creating a new XPages Library, you can start by importing the blank library attached below then follow the instructions in this article.
If you are not familiar with the XPages library contents, you may want to start with the article "Creating an XPages Library".

Import the library


In Domino Designer, switch to the Java perspective; select Window - "Open Perspective" - Other... - Java - OK.

Download the blank library archive. This contains a plugin, feature and update site.
Next, select File - Import... - General - "Existing Projects into Workspace" - Next - Select archive file - Finish.

Rename the feature


In the Package Explorer, right-click the feature and select Refactor - Rename. Enter a new name (e.g. "com.acme.xsp.feature") and select OK.
Next, open the file "feature.xml". In the Overview tab, enter the new ID, Name and Provider.

Feature information

Change the feature in the update site


Open the update site's "site.xml" file. In the "Site Map" tab, right-click the old feature and select Remove.
Next, select "Add Feature..." - Select the new feature name - OK.

Add new feature

Changing the plugin


Rename the plugin


In the Package Explorer, right-click the plugin and select Refactor - Rename. Enter a new name (e.g. "com.acme.xsp") and select OK.
Next, open the file "META-INF/MANIFEST.MF". In the Overview tab, enter the new Name and Provider.

Plugin information

Change the plugin ID in the library


Open the library class (e.g. "ExampleBlankLibrary.java") and change the getPluginId method.

public String getPluginId() {
  return "com.acme.xsp";
}


Change the plugin in the feature


Open the feature's "feature.xml" file. In the Plugins tab, right-click the old plugin and select Delete.
Next, select "Add..." - Select the new plugin name - OK.

Add new plugin

Rename each package


In the Package Explorer, right-click each package and select Refactor - Rename. Enter a new name, enable all check boxes and select Preview - OK.

Rename the library


In the library package, right-click the library class and select Refactor - Rename. Enter a new name, enable all check boxes and select Next - Finish.

Change the control's xsp-config file


Open the control's xsp-config file (e.g. "orangeBox.xsp-config") and change the namespace-uri and default-prefix.

<faces-config-extension>
  <namespace-uri>http://acme.com/xsp/</namespace-uri>
  <default-prefix>ac</default-prefix>
</faces-config-extension>


You may also want to rename the control or remove it and create your own.
expanded Attachments (5)
collapsed Attachments (5)
File TypeSizeFile NameCreated OnDelete file
image/jpeg 21 KB pluginInfo.jpg 8/21/10, 11:56 AM
image/jpeg 32 KB addFeature.jpg 8/21/10, 11:56 AM
image/jpeg 41 KB addPlugin.jpg 8/21/10, 11:56 AM
image/jpeg 20 KB featureInfo.jpg 8/21/10, 11:56 AM
application/x-zip 8 KB blankLibrarySource.zip 8/21/10, 11:56 AM
expanded Versions (3)
collapsed Versions (3)
Version Comparison     
VersionDateChanged by              Summary of changes
3Sep 20, 2010, 5:19:43 PM~Wendy Nimtoozenetsi  IBM contributor
This version (2)Aug 21, 2010, 12:15:45 PM~Phil Fezhipivitchader  IBM contributor
1Aug 21, 2010, 12:01:07 PM~Ted Chukrotheroni  
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility